/**
 * 
 */
package com.tagit.speech;

/**
 * @author Mohamed Ali
 * 
 */
public abstract class SpeechRecognizer {

	protected boolean isRecognizing;
	
	public SpeechRecognizer() {
		super();
	}

	public void startRecognition() {
		isRecognizing = true;
	}

	public void stopRecognition() {
		isRecognizing = false;

	}

	public boolean isRecognizing() {
		return isRecognizing;
	}

	/** Reads samples sent by the client */
	public abstract void readData(double[] data, int collectTime);

	public abstract void close();

}